package com.shuai.jit.entity.course;


import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tag")
public class Tag {

    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty("该标签属于谁的id")
    private String pid;

    @ApiModelProperty("标签的内容")
    private String name;

    @ApiModelProperty("标签的类型 1表示是视屏的标签 ，2 表示文章的标签")
    private int type;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    @ApiModelProperty("上次创建时间")
    @TableField(fill =FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;

    @ApiModelProperty("乐观锁")
    @Version
    @TableField(fill = FieldFill.INSERT)
    private Integer version;

    @ApiModelProperty("逻辑是否删除")
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Integer isDelete;
}
